#include <stdio.h>
#include <string.h>

#define MAX_SIZE 1024
#define ARGV_SIZE 32
#define DELIM " \t"

char* argv[ARGV_SIZE];

int main()
{
    char str[MAX_SIZE];
    printf("sizeof(str): %d\n",sizeof(str));
    fgets(str,sizeof(str),stdin);
    printf("sizeof(str): %d\n",sizeof(str));

    int i = 0;
    argv[i++] = strtok(str, DELIM);
    while(argv[i++] = strtok(NULL, DELIM));
    for(i=0; argv[i]; ++i)
    {
        printf("%d; %s\n",i, argv[i]);
    }

    return 0;
}
